package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface MovementService {
    void save(Movement movement);

    PageBeanVo findMyMovementByPage(Integer pageNum, Integer pageSize, Long userId);
    PageBeanVo findFriendMovementByPage(Integer pageNum, Integer pageSize, Long userId);
    PageBeanVo findRecommendMovementByPage(Integer pageNum, Integer pageSize, Long userId);

    Movement findById(ObjectId publishId);

    //后台查询用户状态 userId和state都有可能为空
    PageBeanVo findByConditionAndPage(Long userId,Integer state,Integer pageNum, Integer pageSize);

    void update(Movement movement);
}
